'''
n 个男孩，m个女孩（m <= n + 1）随机地排成一列，问“任意两个女孩都不相邻” 这个事件E地概率是多少？
'''

from scipy.special import comb, factorial


n = 10
m = 8
expect_result = factorial(n) * comb(n + 1, m) / factorial(n + m)
print(expect_result)


